package com.second.app.template;

public class TemplateMethod {
    public static void main(String[] args) {
        Action actionA = new Rebort();//机器人的行为
        actionA.command(Action.EAT);
        actionA.command(Action.WORK);
        Action actionB = new Woman();//美女的行为
        actionB.command(Action.EAT+Action.SLEEP+Action.RUN);
        Action actionC = new Man();//帅哥的行为
        actionC.command(Action.EAT+Action.SLEEP+Action.RUN+Action.WORK);
    }
}
